<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>上机2</title>
	</head>
	<body>
		<script type="text/javascript">
			function person(){

			}
			person.prototype.name="叶良辰";
			person.prototype.age="25";
			person.prototype.job="网红";
			person.prototype.address="北京";
			person.prototype.show=function(){


			document.write("姓名："+this.name+"<br />年龄："+this.age+"<br/>工作："+this.job+"<br />住址："+this.address);
		}
		var man=new person();
		man.show();
		man.job="捡破烂";
		man.show();
		</script>
	</body>
</html>
